package org.example.cet.demos.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

@Mapper
public interface AnswerMapper {
    @Select("SELECT type FROM questions WHERE id = #{id}")
    Integer getType(Integer id);
    @Select("SELECT answer FROM questions WHERE id = #{id}")
    String getAns(Integer id);

}
